<?php
/**
 * @copyright	Copyright (C) 2008 Bideew. All rights reserved.
 * @license		GNU/GPL
 * This file is part of Bideew.

 * Bideew is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.

 * Bideew is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Bideew; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
// Pas d'acces direct
defined('fADMIN') or die( 'Restricted access' );

$pages = Page::getAll();
if(count($pages)>0) {
	echo "<table>\n";
	echo "<tr><th>Id page</th><th>Langue</th><th>Titre</th><th>Alias</th><th>Action</th></tr>\n";
	foreach ($pages as $page) {
		echo "<tr>";
		echo "<td>".$page->id."</td>";
		echo "<td>".$page->lang."</td>";
		echo "<td>".$page->name."</td>";
		echo "<td>".$page->linkname."</td>";
		echo "<td><a href=\"admin-".gMODULE."-action-modification-".$page->id.".html\" title=\"Modifier la page\">Modifier</a>&nbsp;";
		echo "<a href=\"admin-".gMODULE."-action-suppression-".$page->id.".html\" title=\"Supprimer la page\">Supprimer</a></td>";
		echo "</tr>\n";
	}
	echo "</table>\n";
}
else {
	echo "pas de pages!";
}

//print_r($users);

?>